<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
    <link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
        
<table class="form-table">
    <caption>bmp</caption>
    <tr>
        <td>file header</td>
        <td>
            <table width="100%" name="header">
                <tr>
                    <td>type</td>
                    <td>uint16_t</td>
                </tr>
                <tr>
                    <td>size</td>
                    <td>uint32_t</td>
                </tr>
                <tr>
                    <td>reserved1</td>
                    <td>uint32_t</td>
                </tr>
                <tr>
                    <td>offset</td>
                    <td>uint32_t</td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>info_header</td>
        <td>
            <table width="100%">
                <tr>
                    <td>size</td>
                    <td>uint32_t</td>
                </tr>
                <tr>
                    <td>width</td>
                    <td>int32_t</td>
                </tr>
                <tr>
                    <td>height</td>
                    <td>int32_t</td>
                </tr>
                <tr>
                    <td>planes</td>
                    <td>uint16_t</td>
                </tr>
                <tr>
                    <td>bits</td>
                    <td>uint16_t</td>
                </tr>
                <tr>
                    <td>compression</td>
                    <td>uint32_t</td>
                    <td>
<table>
    <tr>
        <td>0</td>
        <td>no compression</td>
    </tr>
    <tr>
        <td>1</td>
        <td>8 bit run length encoding</td>
    </tr>
    <tr>
        <td>2</td>
        <td>4 bit run length encoding</td>
    </tr>
    <tr>
        <td>3</td>
        <td>RGB bitmap with mask</td>
    </tr>
</table>

                    </td>
                </tr>
                <tr>
                    <td>imagesize</td>
                    <td>uint32_t</td>
                </tr>
                <tr>
                    <td>xresolution</td>
                    <td>int32_t</td>
                </tr>
                <tr>
                    <td>yresolution</td>
                    <td>int32_t</td>
                </tr>
                <tr>
                    <td>nclours</td>
                    <td>uint32_t</td>
                </tr>
                <tr>
                    <td>important</td>
                    <td>uint32_t</td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>color_palette[@bits<24?1<<@bits:0]</td>
        <td>
            <table width="100%">
                <tr>
                    <td>blue</td>
                    <td>uint8_t</td>
                </tr>
                <tr>
                    <td>green</td>
                    <td>uint8_t</td>
                </tr>
                <tr>
                    <td>red</td>
                    <td>uint8_t</td>
                </tr>
                <tr>
                    <td>reserved</td>
                    <td>uint8_t</td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>bitmap_data[@imagesize]</td>
        <td>uint8_t</td>
    </tr>
</table>


</body>
</html>
